home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16044 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  852 b 

  1. Path: ix.netcom.com!netnews
  2. From: jhewett@ix.netcom.com (Jerry Hewett)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: const FAR* for a DLL
  5. Date: Mon, 08 Apr 96 17:31:11 GMT
  6. Organization: Netcom
  7. Message-ID: <N.040896.103111.84@ix.netcom.com>
  8. References: <828873144.24425@uribe.demon.co.uk>
  9. NNTP-Posting-Host: tem-ca1-23.ix.netcom.com
  10. X-NETCOM-Date: Mon Apr 08 10:32:07 AM PDT 1996
  11. X-Newsreader: Quarterdeck Message Center [2.00]
  12.  
  13. Damn!  Screwed up with that sample code I posted -- sorry about that!
  14.  
  15. (1) BYTE is "typedef unsigned char BYTE;" (added this to my STDLIB.H so long
  16.     ago that I keep forgetting it's not part of the language...), so ignore
  17.     it in the sample.
  18.  
  19. (2) "colour" should be bit-shifted, not masked:
  20.  
  21.     // bit-shift colour to BGR byte values (page 101)
  22.  
  23.     bBlu = colour >> 16;
  24.     bGrn = colour >> 8;
  25.     bRed = colour;
  26.  
  27. Jerry H.
  28.  
  29.  
  30.